package com.shihb.chapter06customercrm.bean

/**
 * Description:
 * 实现Customer类
 * @author shihb
 * @date 2020/10/2 16:00
 */
class Customer {
  // 属性
  var id: Int = _
  var name: String = _
  var gender: Char = _
  var age: Short = _
  var tel: String = _
  var email: String = _

  // 辅组构造器
  def this(id: Int, name: String, gender: Char, age: Short, tel: String, email: String) {
    this
    this.id = id
    this.name = name
    this.gender = gender
    this.age = age
    this.tel = tel
    this.email = email
  }
  def this(name: String, gender: Char, age: Short, tel: String, email: String) {
    this(0,name,gender,age,tel,email)
  }

  override def toString: String = s" $id\t\t${name}\t\t${gender}\t\t${age}\t\t${tel}\t\t${email}"


}
